// { "framework": "Vue"} 
if(typeof app=="undefined"){app=weex}
if(typeof eeuiLog=="undefined"){var eeuiLog={_:function(t,e){var s=e.map(function(e){return e="[object object]"===Object.prototype.toString.call(e).toLowerCase()?JSON.stringify(e):e});if(typeof this.__m==='undefined'){this.__m=app.requireModule('debug')}this.__m.addLog(t,s)},debug:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("debug",e)},log:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("log",e)},info:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("info",e)},warn:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("warn",e)},error:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("error",e)}}}
/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__webpack_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__webpack_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __webpack_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__webpack_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = "./src/pages/member/footprint/footprint.vue?entry=true");
/******/ })
/************************************************************************/
/******/ ({

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/components/myNavbar/myNavbar.vue":
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!/usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/components/myNavbar/myNavbar.vue ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _entry_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../entry.js */ "./src/entry.js");
/* harmony import */ var _entry_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_entry_js__WEBPACK_IMPORTED_MODULE_0__);
//
//
//
//
//
//
//
//
//
//

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
  data: function data() {
    return {
      statusBarHeight: eeui.getStatusBarHeightPx()
    };
  },
  created: function created() {
    this.initIconFont();
  },
  props: {
    title: String,
    back: {
      "default": true
    }
  },
  methods: {
    backClick: function backClick() {
      if (this.back) {
        eeui.closePage();
      }
    }
  }
});

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/pages/member/footprint/footprint.vue":
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!/usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/pages/member/footprint/footprint.vue ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _entry_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../entry.js */ "./src/entry.js");
/* harmony import */ var _entry_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_entry_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _api_trace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../api/trace */ "./src/api/trace.js");
/* harmony import */ var _components_myNavbar_myNavbar_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../components/myNavbar/myNavbar.vue */ "./src/components/myNavbar/myNavbar.vue");
/* harmony import */ var _components_myNavbar_myNavbar_vue__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_components_myNavbar_myNavbar_vue__WEBPACK_IMPORTED_MODULE_2__);
//
//
//
//
//
//
//
//
//
//

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

var eeui = app.requireModule('eeui');

/* harmony default export */ __webpack_exports__["default"] = ({
  name: 'footprint',
  data: function data() {
    return {
      pageNum: 1,
      pageSize: 20,
      createDateList: [],
      //日期的数组
      footprintList: [],
      loadinging: false,
      refreshing: false,
      refreshTitle: '释放刷新页面...'
    };
  },
  created: function created() {
    // 在实例创建完成后被立即调用
    this.getFootprintData();
  },
  components: {
    myNavbar: _components_myNavbar_myNavbar_vue__WEBPACK_IMPORTED_MODULE_2___default.a
  },
  methods: {
    onloading: function onloading(event) {
      var _this = this;

      this.loadinging = true;
      setTimeout(function () {
        _this.loadinging = false;
        _this.pageNum += 1;

        _this.getFootprintData();
      }, 1000);
    },
    onrefresh: function onrefresh(event) {
      var _this2 = this;

      this.refreshing = true;
      this.refreshTitle = '加载中...';
      setTimeout(function () {
        _this2.pageNum = 1;
        _this2.refreshing = false;

        _this2.getFootprintData();
      }, 1000);
    },
    onpullingdown: function onpullingdown(event) {
      this.refreshTitle = '释放刷新页面...';
    },
    //获取足迹信息
    getFootprintData: function getFootprintData(callback) {
      var _this3 = this;

      if (this.pageNum == 1) {
        this.footprintList = [];
      }

      var data = {
        pageNum: this.pageNum,
        pageSize: this.pageSize
      };
      Object(_api_trace__WEBPACK_IMPORTED_MODULE_1__["list"])(data).then(function (res) {
        eeuiLog.info(res);

        if (res.type == 'success') {
          if (res.data.data.length > 0) {
            _this3.formateFootprintData(res.data.data);
          } else {// eeui.alert('没有更多足迹', function() {});
          }

          if (callback) {
            callback(res.data.data);
          }
        }
      })["catch"](function (error) {
        eeuiLog.log(error);
      });
    },
    selectItem: function selectItem(id, state) {
      if (state) {
        eeui.openPage({
          url: 'root://pages/goods/product/details.js',
          params: id,
          statusBarType: 'immersion',
          statusBarStyle: false
        });
      } else {
        eeuiLog.info("无效商品商品被点击了");
      }
    },
    formatDate2day: function formatDate2day(val) {
      var date = new Date(val);
      var y = date.getFullYear();
      var MM = date.getMonth() + 1;
      MM = MM < 10 ? '0' + MM : MM;
      var d = date.getDate();
      d = d < 10 ? '0' + d : d;
      return y + '-' + MM + '-' + d;
    },
    goShopping: function goShopping() {
      eeui.openPage({
        url: 'root://pages/index.js',
        statusBarType: 'immersion',
        statusBarStyle: false
      });
    },
    //足迹数据初始化
    formateFootprintData: function formateFootprintData(data) {
      var _this4 = this;

      var footprintList = this.footprintList;
      var createDateList = [];
      var addFootprintList = [];

      if (data.length > 0) {
        data.map(function (item) {
          createDateList.push(item.createDate);
        });
        createDateList = Array.from(new Set(createDateList)); //去重

        if (createDateList.length > 0) {
          createDateList.map(function (item) {
            var footprintListItem = {};
            footprintListItem.createDate = item;
            footprintListItem.date = _this4.formatDate2day(item);
            footprintListItem.footprintProductList = [];
            data.map(function (item1) {
              if (item1.createDate == item) {
                var footprintProductListItem = {};
                footprintProductListItem.id = item1.id;
                footprintProductListItem.name = item1.name;
                footprintProductListItem.thumbnail = _this4.thumbnail(item1.thumbnail, 225, 225);
                footprintProductListItem.price = item1.price;
                footprintProductListItem.state = true;

                if (item1.stock == 0) {
                  footprintProductListItem.tag = "缺货";
                  footprintProductListItem.state = false;
                }

                if (item1.isMarketable == false) {
                  footprintProductListItem.tag = "下架";
                  footprintProductListItem.state = false;
                }

                footprintListItem.footprintProductList.push(footprintProductListItem);
              }
            });
            addFootprintList.push(footprintListItem);
          });

          if (addFootprintList.length > 0) {
            addFootprintList.map(function (item) {
              var checkOff = false; //检查是不是同一天的足迹

              footprintList.map(function (item1) {
                if (item.createDate == item1.createDate) {
                  checkOff = true;
                  item.footprintProductList.map(function (item2) {
                    item1.footprintProductList.push(item2);
                  });
                }
              });

              if (!checkOff) {
                footprintList.push(item);
              }
            });
          }
        }
      }
    }
  }
});

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-0ae5e94f!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/components/myNavbar/myNavbar.vue":
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-0ae5e94f!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/components/myNavbar/myNavbar.vue ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = {
  "navbar": {
    "width": "750",
    "height": "100"
  },
  "text": {
    "fontSize": "36"
  },
  "status-bar": {
    "backgroundColor": "#FFFFFF"
  },
  "iconLeft": {
    "color": "#000000",
    "fontSize": "30",
    "paddingLeft": "30",
    "paddingRight": "30",
    "fontFamily": "iconfont2"
  }
}

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-55b51d04!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/pages/member/footprint/footprint.vue":
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-55b51d04!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/pages/member/footprint/footprint.vue ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = {
  "footprint": {
    "flex": 1,
    "backgroundColor": "rgba(248,248,248,0.8)"
  },
  "footprint-list": {
    "width": "750",
    "flex": 1,
    "marginTop": "20"
  },
  "refresh": {
    "height": "60",
    "width": "750",
    "display": "flex",
    "MsFlexAlign": "center",
    "WebkitAlignItems": "center",
    "WebkitBoxAlign": "center",
    "justifyContent": "center",
    "alignItems": "center",
    "flexDirection": "row"
  },
  "favorite-none-button": {
    "display": "flex",
    "alignItems": "center",
    "justifyContent": "center",
    "width": "338",
    "height": "82",
    "marginTop": "30",
    "backgroundColor": "rgba(227,93,87,1)",
    "borderRadius": "8"
  },
  "loading": {
    "justifyContent": "center",
    "height": "50",
    "width": "750",
    "display": "flex",
    "MsFlexAlign": "center",
    "WebkitAlignItems": "center",
    "WebkitBoxAlign": "center",
    "flexDirection": "row",
    "alignItems": "center"
  },
  "indicator": {
    "marginTop": "16",
    "height": "40",
    "width": "40"
  },
  "footprint-list-date": {
    "display": "flex",
    "flexDirection": "row",
    "alignItems": "center",
    "fontSize": "28",
    "fontWeight": "700",
    "marginLeft": "30"
  },
  "navbar": {
    "width": "750",
    "height": "100",
    "marginBottom": "20"
  },
  "footprint-productList": {
    "width": "750",
    "flex": 1,
    "display": "flex",
    "flexDirection": "row",
    "flexWrap": "wrap",
    "paddingLeft": "15"
  },
  "footprint-productList-item": {
    "alignContent": "center",
    "marginTop": "30",
    "marginRight": "20",
    "borderRadius": "16",
    "position": "relative"
  },
  "mask": {
    "opacity": 0.5
  },
  "footprint-productList-item-tag": {
    "position": "absolute",
    "backgroundImage": "linear-gradient(to bottom, rgb(189, 191, 198, 1), rgba(214, 215, 216, 1))",
    "paddingTop": "2",
    "paddingRight": "2",
    "paddingBottom": "2",
    "paddingLeft": "2",
    "width": "100",
    "right": "5",
    "borderColor": "rgba(200,200,212,0.6)",
    "borderStyle": "solid",
    "borderWidth": "1",
    "borderRadius": "2",
    "letterSpacing": "2"
  },
  "footprint-productList-item-tag_div": {
    "paddingTop": "8",
    "paddingRight": "12",
    "paddingBottom": "8",
    "paddingLeft": "12",
    "fontSize": "20",
    "fontFamily": "PingFang SC",
    "fontWeight": "400",
    "color": "rgba(0,0,0,1)",
    "borderRadius": "1"
  },
  "footprint-productName": {
    "fontSize": "24",
    "fontWeight": "400",
    "height": "72",
    "color": "rgba(26,26,30,1)",
    "lineHeight": "36",
    "textOverflow": "ellipsis",
    "overflow": "hidden",
    "display": "-webkit-box",
    "wordBreak": "break-all",
    "WebkitBoxOrient": "vertical",
    "WebkitLineClamp": 2,
    "paddingTop": 0,
    "paddingRight": "15",
    "paddingBottom": 0,
    "paddingLeft": "15"
  },
  "footprint-productList-item-bottom": {
    "display": "flex",
    "alignItems": "center",
    "flexDirection": "row",
    "fontSize": "32",
    "fontWeight": "bold",
    "color": "rgba(227,93,87,1)",
    "justifyContent": "space-between",
    "marginTop": "10",
    "marginLeft": "5"
  },
  "delete": {
    "color": "#808080",
    "width": "30",
    "height": "30",
    "fontSize": "30",
    "borderRadius": "6"
  },
  "footprint-none": {
    "width": "750",
    "display": "flex",
    "alignItems": "center",
    "flex": 1,
    "justifyContent": "center"
  },
  "footprint-none-image": {
    "textAlign": "center",
    "display": "block",
    "marginTop": 0,
    "marginBottom": 0,
    "width": "200",
    "height": "200"
  },
  "footprint-none-text": {
    "textAlign": "center",
    "letterSpacing": "5",
    "fontSize": "26",
    "fontFamily": "PingFang SC",
    "fontWeight": "400",
    "color": "#666666",
    "lineHeight": "42",
    "marginTop": "30"
  },
  "footprint-none-button": {
    "fontSize": "32",
    "display": "block",
    "height": "82",
    "marginTop": "30",
    "backgroundImage": "linear-gradient(to top, #FF560C, #FE8003)",
    "borderRadius": "16",
    "letterSpacing": "5"
  },
  "footprint-productList-item-no": {
    "position": "absolute",
    "top": 0,
    "left": 0,
    "right": 0,
    "bottom": 0,
    "backgroundColor": "rgba(0,0,0,0.2)",
    "display": "flex",
    "justifyContent": "center",
    "alignItems": "center",
    "borderRadius": "16"
  },
  "indicator-text": {
    "color": "#888888",
    "fontSize": "22",
    "textAlign": "center",
    "paddingTop": "20"
  }
}

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-0ae5e94f!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/components/myNavbar/myNavbar.vue":
/*!**********************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-0ae5e94f!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/components/myNavbar/myNavbar.vue ***!
  \**********************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', [_c('div', {
    staticClass: ["status-bar"],
    style: {
      height: _vm.statusBarHeight + 'px'
    }
  }), _c('navbar', {
    staticClass: ["navbar"],
    style: {
      backgroundColor: 'white'
    }
  }, [_c('navbar-item', {
    attrs: {
      "type": "left"
    },
    on: {
      "click": _vm.backClick
    }
  }, [(_vm.back) ? _c('div', [_c('text', {
    staticClass: ["iconLeft"]
  }, [_vm._v("")])]) : _vm._e()]), _c('navbar-item', {
    attrs: {
      "type": "title"
    }
  }, [_c('text', {
    staticClass: ["text"]
  }, [_vm._v(_vm._s(_vm.title))])])], 1)], 1)
},staticRenderFns: []}
module.exports.render._withStripped = true

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-55b51d04!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/pages/member/footprint/footprint.vue":
/*!**************************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-55b51d04!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/pages/member/footprint/footprint.vue ***!
  \**************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    staticClass: ["footprint"]
  }, [_c('myNavbar', {
    attrs: {
      "title": "足迹"
    }
  }), (_vm.footprintList.length > 0) ? _c('list', [_c('refresh', {
    staticClass: ["refresh"],
    attrs: {
      "display": _vm.refreshing ? 'show' : 'hide'
    },
    on: {
      "refresh": _vm.onrefresh,
      "pullingdown": _vm.onpullingdown
    }
  }, [_c('text', {
    staticClass: ["indicator-text"]
  }, [_vm._v(_vm._s(_vm.refreshTitle))])]), _c('cell', {
    appendAsTree: true,
    attrs: {
      "append": "tree"
    }
  }, [_vm._l((_vm.footprintList), function(item) {
    return _c('div', {
      staticClass: ["footprint-list"]
    }, [_c('div', [_c('text', {
      staticClass: ["footprint-list-date"]
    }, [_vm._v(_vm._s(item.date))])]), _c('div', {
      staticClass: ["footprint-productList"]
    }, _vm._l((item.footprintProductList), function(item1) {
      return _c('div', [_c('div', {
        staticClass: ["footprint-productList-item"],
        on: {
          "click": function($event) {
            _vm.selectItem(item1.id, item1.state)
          }
        }
      }, [_c('div', {
        staticStyle: {
          position: "relative"
        }
      }, [_c('image', {
        staticStyle: {
          width: "225px",
          height: "225px",
          borderRadius: "16px"
        },
        attrs: {
          "src": item1.thumbnail
        }
      }), (item1.state == false) ? _c('div', {
        staticClass: ["footprint-productList-item-no"]
      }, [_c('text', {
        staticStyle: {
          fontSize: "32px",
          color: "white",
          fontWeight: "700"
        }
      }, [_vm._v("已下架")])]) : _vm._e()]), _c('text', {
        staticClass: ["footprint-productList-item-bottom"]
      }, [_vm._v("￥" + _vm._s(item1.price))])])])
    }))])
  }), _c('div', {
    staticStyle: {
      height: "80px"
    }
  })], 2), _c('loading', {
    staticClass: ["loading"],
    attrs: {
      "display": _vm.loadinging ? 'show' : 'hide'
    },
    on: {
      "loading": _vm.onloading
    }
  }, [_c('text', {
    staticClass: ["indicator-text"]
  }, [_vm._v("加载中...")])])]) : _vm._e(), (_vm.footprintList.length == 0) ? _c('div', {
    staticClass: ["footprint-none"]
  }, [_c('image', {
    staticClass: ["footprint-none-image"],
    attrs: {
      "src": "https://rzico.oss-cn-shenzhen.aliyuncs.com/none-data/kongneirong.png"
    }
  }), _c('text', {
    staticClass: ["footprint-none-text"]
  }, [_vm._v("您还没有相关的足迹")]), _c('text', {
    staticStyle: {
      fontSize: "24px",
      color: "#B0ADBC",
      marginTop: "10px"
    }
  }, [_vm._v("赶紧去看看有哪些想买的吧")]), _c('div', {
    staticClass: ["favorite-none-button"],
    on: {
      "click": _vm.goShopping
    }
  }, [_c('text', {
    staticStyle: {
      color: "white",
      fontSize: "32px"
    }
  }, [_vm._v("去逛逛")])])]) : _vm._e()], 1)
},staticRenderFns: []}
module.exports.render._withStripped = true

/***/ }),

/***/ "./src/api/trace.js":
/*!**************************!*\
  !*** ./src/api/trace.js ***!
  \**************************/
/*! exports provided: list, add, traceCount */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "list", function() { return list; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "add", function() { return add; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "traceCount", function() { return traceCount; });
/* harmony import */ var _utils_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/request */ "./src/utils/request.js");
 //用户足迹

function list(params) {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/member/memberTrace/list',
    method: 'get',
    params: params
  });
}
function add(data) {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/member/memberTrace/add',
    method: 'post',
    data: data
  });
}
function traceCount() {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/member/memberTrace/count',
    method: 'get'
  });
}

/***/ }),

/***/ "./src/components/myNavbar/myNavbar.vue":
/*!**********************************************!*\
  !*** ./src/components/myNavbar/myNavbar.vue ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var __vue_exports__, __vue_options__
var __vue_styles__ = []

/* styles */
__vue_styles__.push(__webpack_require__(/*! !../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader!../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter?id=data-v-0ae5e94f!../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=styles&index=0!./myNavbar.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-0ae5e94f!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/components/myNavbar/myNavbar.vue")
)

/* script */
__vue_exports__ = __webpack_require__(/*! !../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader!babel-loader!../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=script&index=0!./myNavbar.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/components/myNavbar/myNavbar.vue")

/* template */
var __vue_template__ = __webpack_require__(/*! !../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler?id=data-v-0ae5e94f!../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=template&index=0!./myNavbar.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-0ae5e94f!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/components/myNavbar/myNavbar.vue")
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
  typeof __vue_exports__.default === "object" ||
  typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {eeuiLog.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
  __vue_options__ = __vue_options__.options
}
__vue_options__.__file = "/Users/zhangsr/Documents/GitHub/rzico-boot-eeui/src/components/myNavbar/myNavbar.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__._scopeId = "data-v-0ae5e94f"
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
  for (var name in module) {
    __vue_options__.style[name] = module[name]
  }
})
if (typeof __register_static_styles__ === "function") {
  __register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}

module.exports = __vue_exports__


/***/ }),

/***/ "./src/entry.js":
/*!**********************!*\
  !*** ./src/entry.js ***!
  \**********************/
/*! no static exports found */
/***/ (function(module, exports) {

// 注意：修改此文件需要重新执行npm才会生效
// 注册全局组件示例
// import headNav from './components/headNav'
// Vue.component('headNav', headNav);

/***/ }),

/***/ "./src/pages/member/footprint/footprint.vue?entry=true":
/*!*************************************************************!*\
  !*** ./src/pages/member/footprint/footprint.vue?entry=true ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var __vue_exports__, __vue_options__
var __vue_styles__ = []

/* styles */
__vue_styles__.push(__webpack_require__(/*! !../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader!../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter?id=data-v-55b51d04!../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=styles&index=0!./footprint.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-55b51d04!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/pages/member/footprint/footprint.vue")
)

/* script */
__vue_exports__ = __webpack_require__(/*! !../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader!babel-loader!../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=script&index=0!./footprint.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/pages/member/footprint/footprint.vue")

/* template */
var __vue_template__ = __webpack_require__(/*! !../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler?id=data-v-55b51d04!../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=template&index=0!./footprint.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-55b51d04!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/pages/member/footprint/footprint.vue")
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
  typeof __vue_exports__.default === "object" ||
  typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {eeuiLog.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
  __vue_options__ = __vue_options__.options
}
__vue_options__.__file = "/Users/zhangsr/Documents/GitHub/rzico-boot-eeui/src/pages/member/footprint/footprint.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__._scopeId = "data-v-55b51d04"
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
  for (var name in module) {
    __vue_options__.style[name] = module[name]
  }
})
if (typeof __register_static_styles__ === "function") {
  __register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}

module.exports = __vue_exports__
module.exports.el = 'true'
new Vue(module.exports)


/***/ }),

/***/ "./src/utils/request.js":
/*!******************************!*\
  !*** ./src/utils/request.js ***!
  \******************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/**
 * Created by zhangsr on 2020/7/6.
 */
var stream = weex.requireModule('stream') || {};
var eeui = app.requireModule('eeui');

var Json2Url = function Json2Url(data) {
  try {
    var tempArr = [];

    for (var i in data) {
      var key = i;
      var value = encodeURIComponent(data[i]);
      tempArr.push(key + '=' + value);
    }

    var urlParamsStr = tempArr.join('&');
    return urlParamsStr;
  } catch (err) {
    return '';
  }
};

var request = function request(data) {
  var _this = this;

  return new Promise(function (resolve, reject) {
    var gdata = eeui.getCachesString("globalData", '');
    var globalData = JSON.parse(gdata);
    var token = globalData.token; // globalData.APP_BASE_API

    var APP_BASE_API = globalData.APP_BASE_API; // var APP_BASE_API ='https://api.365.qmin365.cn:8443'

    var header = {};

    if (token != null) {
      header = {
        'Authorization': token,
        'Content-Type': 'application/json'
      };
    }

    var url = data.url;

    if (data.params != null && data.params != undefined) {
      var params = Json2Url(data.params);

      if (url.indexOf('?') >= 0) {
        url = url + '&' + params;
      } else {
        url = url + '?' + params;
      }
    }

    stream.fetch({
      headers: header,
      method: data.method,
      url: APP_BASE_API + url,
      type: 'json',
      body: data.data,
      timeout: 20000
    }, function (ret) {
      // eeuiLog.log(ret)
      if (!ret.ok) {
        eeui.toast({
          message: '请求出错',
          gravity: 'middle'
        });
        reject(ret.statusText);
      } else {
        if (ret.data.type == "error") {
          eeui.toast({
            message: ret.data.content,
            gravity: 'middle'
          });
          reject(ret.data);
        } else {
          resolve(ret.data);
        }
      }
    });
  });
};

/* harmony default export */ __webpack_exports__["default"] = (request);

/***/ })

/******/ });